cmake_minimum_required(VERSION 2.6)
project(Soundcloud_Server)
# add dependencies of headers
include_directories(system/socket/include)
include_directories(system/thread/include)
include_directories(kit/processor/include)
include_directories(kit/container/include)
include_directories(kit/coordinator/include)
include_directories(kit/user/include)
include_directories(kit/event/include)
include_directories(kit/tool/include)
include_directories(kit/message/include)
include_directories(server/include)
include_directories(exception/include)
# add subdirectories
add_subdirectory(system/socket)
add_subdirectory(system/thread)
add_subdirectory(kit/processor)
add_subdirectory(kit/container)
add_subdirectory(kit/coordinator)
add_subdirectory(kit/user)
add_subdirectory(kit/event)
add_subdirectory(kit/tool)
add_subdirectory(kit/message)
add_subdirectory(server)
add_subdirectory(exception)
#
add_executable(Soundcloud main.cpp)
target_link_libraries(Soundcloud SystemSocket)
target_link_libraries(Soundcloud KitContainer)
target_link_libraries(Soundcloud KitUser)
target_link_libraries(Soundcloud KitEvent)
target_link_libraries(Soundcloud SystemThread)
target_link_libraries(Soundcloud KitProcessor)
target_link_libraries(Soundcloud ServerServer)
target_link_libraries(Soundcloud KitCoordinator)
target_link_libraries(Soundcloud KitTool)
target_link_libraries(Soundcloud KitMessage)
target_link_libraries(Soundcloud Exception)
